After I check system log, found that "relaunch issue" is caused by UEM/MDM.
=> The 'mdmclient' reinstalls my application, scripts will kill the running program.
<<MDM reinstall>> 15:00:18.512454 mdmclient Processing install phase 1 for…
<<Relaunch App>> 15:00:26.596707 MobileIron Authenticate void checkArguments(NSArray<NSString *> *__strong)
<<Relaunch Daemon>> 15:00:26.626379 MiDaemon int main(int, const char **) [DAEMON] main (without UI)
◻️◻️◻️◻️◻️◻️◻️◻️◻️
Another issue - 「App started by the system cannot find the Certificate in the Keychain」
I still don’t know why, but found a solution.
Just use 'SecKeychainOpen' to open the user keychain file (~/Library/Keychains/login.keychain-db), and it can be used normally.
Topic:
App & System Services
SubTopic:
Core OS
Tags: